<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<style type="text/css">
	<%--关键字文本框Div--%>
	.keyTextDiv{
		height:30px;
		border-top:2px solid #09F;
		border-bottom:2px solid #09F;
		border-left:2px solid #09F;
	}
	<%--关键字标题Font--%>
	.keyTitleFont{
		position:absolute;
		height:30px;
		line-height:30px;
		left:8px;
		font-size:14px;
		color:#AAA;
	}
	<%--关键字清除Img--%>
	.keyClearImg{
		width:14px;
		position:absolute;
		top:8px;
		right:8px;
		cursor:pointer;
		display:none;
	}
	<%--关键字Text--%>
	.keyText{
		border:0px;
		height:30px;
		line-height:30px;
		font-size:14px;
		width:96%;
		padding-left:2%;
		padding-right:2%;
	}
	<%--搜索按钮A--%>
	.searchButtonA{
		display:block;
		width:100px;
		height:34px;;
		text-decoration:none;
		text-align:center;
		line-height:34px;
		background-color:#09F;
		font-weight:bold;
		font-size:16px;
		color:white;
	}
	.searchButtonA:hover{
		background-color:#08F;
	}
	<%--意见反馈 A--%>
	.feedBackA{
		color:#999999;
		font-size:12px;
		text-decoration:none;
	}
	.feedBackA:hover{
		color:#09F;
	}
	<%--意见反馈 背景Div--%>
	.feedBackBackgroundDiv{
		position:fixed;
		filter:alpha(opacity=15);	<%--IE6及以后版本设置透明度--%>
		-moz-opacity:0.15;			<%--Firefox3.5以前版本设置透明度--%>
		opacity:0.15;				<%--Firefox3.5以后版本设置透明度--%>
		width:100%;
		height:100%;
		background-color:black;
	}
	<%--意见反馈 Div--%>
	.feedBackDiv{
		position:fixed;
		width:400px;
		right:10px;
		bottom:30px;
		background-color:white;
		border:1px solid #999;
	}
	<%--意见反馈 意见反馈(标题) 行Div--%>
	.feedBackRowDiv1{
		background-color:#F5F5F5;
		border-bottom:1px solid #DDD;
		cursor:move;
	}
	<%--意见反馈 意见反馈(标题) 子Font--%>
	.feedBackSubFont1{
		margin-left:20px;
		font-weight:bold;
		font-size:16px;
		line-height:40px;
	}
	<%--意见反馈 意见反馈(标题) Img--%>
	.feedBackCloseImg{
		padding:12px;
		width:17px;
		position:absolute;
		right:0px;
		top:0px;
		cursor:pointer;
	}
	<%--意见反馈 反馈内容 行Div--%>
	.feedBackRowDiv2{
		margin-top:20px;
	}
	<%--意见反馈 反馈内容 子Font--%>
	.feedBackSubFont2{
		margin-left:20px;
		font-size:14px;
		line-height:20px;
	}
	<%--意见反馈 反馈内容 标题Font--%>
	.feedBackContentTitleFont{
		position:absolute;
		font-size:14px;
		width:260px;
		line-height:25px;
		padding-left:5px;
		padding-right:5px;
		color:#9A9A9A;
	}
	<%--意见反馈 反馈内容 Textarea--%>
	.feedBackContentTextarea{
		border:1px solid #CCC;
		overflow:auto;
		width:260px;
		height:100px;
		font-size:14px;
		line-height:25px;
		padding-left:5px;
		padding-right:5px;
		resize:none;
	}
	<%--意见反馈 联系方式 行Div--%>
	.feedBackRowDiv3{
		margin-top:10px;
	}
	<%--意见反馈 联系方式 子Font--%>
	.feedBackSubFont3{
		margin-left:20px;
		font-size:14px;
		line-height:25px;
	}
	<%--意见反馈 联系方式 标题Font--%>
	.feedBackLinkTitleFont{
		position:absolute;
		font-size:14px;
		line-height:30px;
		padding-left:5px;
		padding-right:5px;
		color:#9A9A9A;
	}
	<%--意见反馈 联系方式 Text--%>
	.feedBackLinkText{
		border:1px solid #CCC;
		width:260px;
		font-size:14px;
		height:30px;
		line-height:30px;
		padding-left:5px;
		padding-right:5px;
	}
	<%--意见反馈 验证码 行Div--%>
	.feedBackRowDiv4{
		margin-top:10px;
	}
	<%--意见反馈 验证码 子Font--%>
	.feedBackSubFont4{
		margin-left:34px;
		font-size:14px;
		line-height:25px;
	}
	<%--意见反馈 验证码 标题Font--%>
	.feedBackCodeTitleFont{
		position:absolute;
		font-size:14px;
		line-height:30px;
		padding-left:5px;
		padding-right:5px;
		color:#9A9A9A;
	}
	<%--意见反馈 验证码 Text--%>
	.feedBackCodeText{
		border:1px solid #CCC;
		width:90px;
		font-size:14px;
		height:30px;
		line-height:30px;
		padding-left:5px;
		padding-right:5px;
	}
	<%--意见反馈 验证码 更新A--%>
	.feedBackCodeUpdateA{
		line-height:30px;
		font-size:12px;
		color:#09F;
		text-decoration:none;
	}
	.feedBackCodeUpdateA:hover{
		text-decoration:underline;
	}
	<%--意见反馈 错误 行Div--%>
	.feedBackRowDiv5{
		margin-top:10px;
		text-align:center;
	}
	<%--意见反馈 提交反馈 行Div--%>
	.feedBackRowDiv6{
		margin-top:10px;
		background-color:#F5F5F5;
		border-top:1px solid #DDD;
		text-align:center;
	}
	<%--意见反馈 提交反馈 A--%>
	.feedBackSubmitA{
		padding-top:5px;
		padding-bottom:5px;
		padding-left:10px;
		padding-right:10px;
		font-size:14px;
		border:1px solid #DDD;
		color:black;
		line-height:60px;
		text-decoration:none;
	}
	.feedBackSubmitA:hover{
		background-color:#E6E6E6;
	}
	
	<%--消息框 背景Div--%>
	.infoBoxBackgroundDiv{
		position:fixed;
		filter:alpha(opacity=15);	<%--IE6及以后版本设置透明度--%>
		-moz-opacity:0.15;			<%--Firefox3.5以前版本设置透明度--%>
		opacity:0.15;				<%--Firefox3.5以后版本设置透明度--%>
		width:100%;
		height:100%;
		background-color:black;
	}
	<%--消息框 Div--%>
	.infoBoxDiv{
		position:fixed;
		width:360px;
		right:10px;
		bottom:30px;
		background-color:white;
		border:1px solid #999;
	}
	<%--消息框 标题 行Div--%>
	.infoBoxRowDiv1{
		background-color:#F5F5F5;
		border-bottom:1px solid #DDD;
		cursor:move;
	}
	<%--消息框 标题 子Font--%>
	.infoBoxSubFont1{
		margin-left:20px;
		font-weight:bold;
		font-size:16px;
		line-height:40px;
	}
	<%--消息框 标题 Img--%>
	.infoBoxCloseImg{
		padding:12px;
		width:17px;
		position:absolute;
		right:0px;
		top:0px;
		cursor:pointer;
	}
	<%--消息框 内容 行Div--%>
	.infoBoxRowDiv2{
		margin-top:20px;
		margin-left:40px;
		width:320px;
	}
	<%--消息框 内容 子Font--%>
	.infoBoxSubFont2{
		font-size:15px;
		line-height:30px;
	}
	<%--消息框 已知消息 行Div--%>
	.infoBoxRowDiv3{
		margin-top:20px;
		background-color:#F5F5F5;
		border-top:1px solid #DDD;
		text-align:center;
	}
	<%--消息框 已知消息 A--%>
	.infoBoxSubmitA{
		padding-top:5px;
		padding-bottom:5px;
		padding-left:10px;
		padding-right:10px;
		font-size:14px;
		border:1px solid #DDD;
		color:black;
		line-height:60px;
		text-decoration:none;
	}
	.infoBoxSubmitA:hover{
		background-color:#E6E6E6;
	}
</style>
<div style="background-color:white;" class="rowDiv">
	<div class="standardDiv">
		<div>
			<div style="width:300px;">
				<A href="/index" style="margin-left:10px;">
					<%--logo图片--%>
					<img src="/image/system/hopochuanLogo.png" style="width:280px; height:80px; border:0px;"/>
				</A>
			</div>
			<div style="width:520px; margin-top:27px;">
				<div class="keyTextDiv" style="width:400px; position:relative;">
					<font id="keyTitle" class="keyTitleFont" onclick="clickKeyTitle()">请输入电影名称</font>
					<img id="keyClear" class="keyClearImg" src="/image/system/keyClear.png" onclick="clickKeyClear()"/>
					<input id="key" class="keyText" type="text" value="${key}" onselectstart="return true"
						onfocus="focusSearchText()"
						onblur="blurSearchText()"
						onkeyup="keyupSearchText()"
						onkeydown="keydownSearchText(event)"
					/>
				</div>
				<div style="width:80px;">
					<A class="searchButtonA" href="javascript:clickSearchButton()">搜 索</A>
				</div>
			</div>
			<div style="width:120px; margin-top:38px;">
				<A class="feedBackA" style="margin-right:10px;" href="/">返回首页</A>
				<A class="feedBackA" href="javascript:clickfeedBack('')">意见反馈</A>
			</div>
		</div>
		<input id="yearId" type="hidden" value="${yearId}"/>
		<input id="areaSortId" type="hidden" value="${areaSortId}"/>
		<input id="typeId" type="hidden" value="${typeId}"/>
		<input id="directorId" type="hidden" value="${directorId}"/>
		<input id="actorId" type="hidden" value="${actorId}"/>
		<input id="pageNo" type="hidden" value="${pageNo}"/>
	</div>
</div>
<script type="text/javascript">
	<%--点击关键字标题事件--%>
	function clickKeyTitle(){
		$("#key").focus();
	}
	
	<%--搜索文本框获得焦点事件--%>
	function focusSearchText(){
		$("#keyTitle").css("display","none");
	}
	
	<%--搜索文本框失去焦点事件--%>
	function blurSearchText(){
		var key = $("#key").val();
		<%--没有关键字 那就显示 关键字标题--%>
		if(key == ""){
			$("#keyTitle").css("display","block");
		}
		else{
			$("#keyTitle").css("display","none");
		}
	}
	
	<%--初始化调用 防止火狐的文字保存功能出现错乱--%>
	blurSearchText();
	
	<%--搜索文本框键盘升起事件--%>
	function keyupSearchText(){
		var key = $("#key").val();
		<%--没有关键字 那就显示 关键字标题--%>
		if(key == ""){
			$("#keyClear").css("display","none");
		}
		else{
			$("#keyClear").css("display","block");
		}
	}
	
	<%--初始化调用 防止火狐的文字保存功能出现错乱--%>
	keyupSearchText();
	
	<%--搜索文本框键盘按下--%>
	function keydownSearchText(event){
		<%--如果点击的是"回车键"--%>
		if(event.keyCode == 13){
			<%--调用搜索按钮--%>
			clickSearchButton();
		}
	}
	
	<%--点击关键字清理--%>
	function clickKeyClear(){
		$("#key").val("");
		$("#keyClear").css("display","none");
		$("#key").focus();
	}

	<%--点击搜索按钮事件--%>
	function clickSearchButton(){
		<%--初始化页号--%>
		$("#pageNo").val(1);
		<%--提交搜索--%>
		submitSearch();
	}
	
	<%--提交搜索--%>
	function submitSearch(){
		var key = $("#key").val();
		var yearId = $("#yearId").val();
		var areaSortId = $("#areaSortId").val();
		var typeId = $("#typeId").val();
		var directorId = $("#directorId").val();
		var actorId = $("#actorId").val();
		var pageNo = $("#pageNo").val();
		
		
		var localUrl = "/movieList";
		
		if(yearId != "" && yearId != "0"){
			localUrl += "/y"+yearId;
		}
		
		if(areaSortId != "" && areaSortId != "0"){
			localUrl += "/s"+areaSortId;
		}
		
		if(typeId != "" && typeId != "0"){
			localUrl += "/t"+typeId;
		}
		
		if(directorId != "" && directorId != "0"){
			localUrl += "/d"+directorId;
		}
		
		if(actorId != "" && actorId != "0"){
			localUrl += "/a"+actorId;
		}
		
		if(pageNo != "" && pageNo != "1"){
			localUrl += "/p"+pageNo;
		}
		
		if(key != ""){
			localUrl += "/k_"+key;
		}
		
		window.location.href = localUrl;
	}
	
	<%--点击意见反馈--%>
	function clickfeedBack(content){
		var html = "";
		html += "<div id='feedBackBackgroundDiv' class='feedBackBackgroundDiv' onmousemove='mousemovefeedBack(event)'></div>";
		html += "<div id='feedBackDiv' class='feedBackDiv' onmousemove='mousemovefeedBack(event)'>";
		html += "	<div class='feedBackRowDiv1'"; 
		html += "		onmousedown='mousedownfeedBack(event)'"; 
		html += "		onmouseup='mouseupfeedBack()'";
		html += "		onmousemove='mousemovefeedBack(event)'";
		html += "	>";
		html += "		<font class='feedBackSubFont1'>意见反馈</font>";
		html += "		<img class='feedBackCloseImg' src='/image/system/close.png'"; 
		html += "			onclick='clickfeedBackClose()'"; 
		html += "		/>";
		html += "	</div>";
		html += "	<div class='feedBackRowDiv2'>";
		html += "		<div style='width:90px;'>";
		html += "			<font class='feedBackSubFont2'>反馈内容：</font>";
		html += "		</div>";
		html += "		<div style='width:280px;'>";
		html += "			<font id='feedBackContentTitle' class='feedBackContentTitleFont'";
		html += "				onclick='clickfeedBackContentTitle()'";
		html += "			>欢迎提出您在使用时遇到的问题或宝贵的意见，感谢您对琥珀川的支持。</font>";
		html += "			<textarea id='feedBackContent' class='feedBackContentTextarea'"; 
		html += "				onfocus='focusfeedBackContent()'";
		html += "				onblur='blurfeedBackContent()'";
		html += "			>"+content+"</textarea>";
		html += "		</div>";
		html += "		<div style='width:10px;'>";
		html += "			<font style='color:red'>*</font>";
		html += "		</div>";
		html += "	</div>";
		html += "	<div class='feedBackRowDiv3'>";
		html += "		<div style='width:90px;'>";
		html += "			<font  class='feedBackSubFont3'>联系方式：</font>";
		html += "		</div>";
		html += "		<div style='width:280px;'>";
		html += "			<font id='feedBackLinkTitle' class='feedBackLinkTitleFont'";
		html += "				onclick='clickfeedBackLinkTitle()'";
		html += "			>留下您的QQ/邮箱便于我们及时回复您。</font>";
		html += "			<input id='feedBackLink' type='text' class='feedBackLinkText'";
		html += "				onfocus='focusfeedBackLink()'";
		html += "				onblur='blurfeedBackLink()'";
		html += "			/>";
		html += "		</div>";
		html += "	</div>";
		html += "	<div class='feedBackRowDiv4'>";
		html += "		<div style='width:90px;'>";
		html += "			<font class='feedBackSubFont4'>验证码：</font>";
		html += "		</div>";
		html += "		<div style='width:110px;'>";
		html += "			<font id='feedBackCodeTitle' class='feedBackCodeTitleFont'";
		html += "				onclick='clickfeedBackCodeTitle()'";
		html += "			>不区分大小写</font>";
		html += "			<input type='text' id='feedBackCode' class='feedBackCodeText'";
		html += "				onfocus='focusfeedBackCode()'";
		html += "				onblur='blurfeedBackCode()'";
		html += "			/>";
		html += "		</div>";
		html += "		<div style='width:10px;'>";
		html += "			<font style='color:red'>*</font>";
		html += "		</div>";
		html += "		<div style='width:110px;'>";
		html += "			<img id='feedBackCodeImg' src='/validateCode?"+Math.random()+"'"; 
		html += "				style='width:100px; height:30px; cursor:pointer;'";
		html += "				title='点击更换验证码'";
		html += "				onclick='clickfeedBackCodeUpdate()'"; 
		html += "			/>";
		html += "		</div>";
		html += "		<div style='width:50px;'>";
		html += "			<A href='javascript:clickfeedBackCodeUpdate()' class='feedBackCodeUpdateA'>换一张</A>";
		html += "		</div>";
		html += "	</div>";
		html += "	<div class='feedBackRowDiv5'>";
		html += "		<font id='feedBackError' style='color:red; font-size:12px; display:none;'></font>";
		html += "	</div>";
		html += "	<div class='feedBackRowDiv6'>";
		html += "		<A href='javascript:submitfeedBack()' class='feedBackSubmitA'>提交反馈</A>";
		html += "	</div>";
		html += "</div>";
		$("body").eq(0).append($(html));
		
		<%--初始化调用失去焦点事件 防止文本域里有文字--%>
		blurfeedBackContent();
	}
	
	<%--点击意见返回关闭--%>
	function clickfeedBackClose(){
		$("#feedBackBackgroundDiv").remove();
		$("#feedBackDiv").remove();
	}
	
	var feedBackX;
	var feedBackY;
	var feedBackRight;
	var feedBackBottom;
	var feedBackIsMovie = false;
	
	<%--鼠标在反馈意见标题Div上按下事件--%>
	function mousedownfeedBack(e){
		feedBackX = e.clientX;
		feedBackY = e.clientY;
		feedBackRight = parseInt($("#feedBackDiv").css("right"));
		feedBackBottom = parseInt($("#feedBackDiv").css("bottom"));
		feedBackIsMovie = true;
	}
	
	<%--鼠标在反馈意见标题Div上升起事件--%>
	function mouseupfeedBack(){
		feedBackIsMovie = false;
	}
	
	<%--鼠标移动意见反馈事件--%>
	function mousemovefeedBack(e){
		if(feedBackIsMovie){
			var newX = e.clientX;
			var newY = e.clientY;
			
			$("#feedBackDiv").css("right",feedBackRight - newX + feedBackX);
			$("#feedBackDiv").css("bottom",feedBackBottom - newY + feedBackY);
		}
	}
	
	<%--反馈内容获得焦点事件--%>
	function focusfeedBackContent(){
		$("#feedBackContentTitle").css("display","none");
	}
	<%--反馈内容失去焦点事件--%>
	function blurfeedBackContent(){
		var feedBackContent = $("#feedBackContent").val();
		<%--没有写反馈内容--%>
		if(feedBackContent == ""){
			$("#feedBackContentTitle").css("display","block");
		}
		else{
			$("#feedBackContentTitle").css("display","none");
		}
	}
	<%--点击反馈内容标题--%>
	function clickfeedBackContentTitle(){
		$("#feedBackContent").focus();
	}
	
	<%--反馈联系人获得焦点事件--%>
	function focusfeedBackLink(){
		$("#feedBackLinkTitle").css("display","none");
	}
	<%--反馈联系人失去焦点事件--%>
	function blurfeedBackLink(){
		var feedBackLink = $("#feedBackLink").val();
		<%--没有写反馈联系人--%>
		if(feedBackLink == ""){
			$("#feedBackLinkTitle").css("display","block");
		}
	}
	<%--点击反馈联系人标题--%>
	function clickfeedBackLinkTitle(){
		$("#feedBackLink").focus();
	}
	
	<%--反馈验证码获得焦点事件--%>
	function focusfeedBackCode(){
		$("#feedBackCodeTitle").css("display","none");
	}
	<%--反馈验证码失去焦点事件--%>
	function blurfeedBackCode(){
		var feedBackCode = $("#feedBackCode").val();
		<%--没有写反馈验证码--%>
		if(feedBackCode == ""){
			$("#feedBackCodeTitle").css("display","block");
		}
	}
	<%--点击反馈验证码标题--%>
	function clickfeedBackCodeTitle(){
		$("#feedBackCode").focus();
	}
	
	<%--点击更新验证码--%>
	function clickfeedBackCodeUpdate(){
		$("#feedBackCodeImg").attr("src","/validateCode?"+Math.random());
	}
	
	<%--提交反馈--%>
	function submitfeedBack(){
		var content = $("#feedBackContent").val();
		var linkman = $("#feedBackLink").val();
		var validateCode = $("#feedBackCode").val();
		var url = window.location.href;
		
		var dataSet = {
			"content":content,
			"linkman":linkman,
			"validateCode":validateCode,
			"url":url
		};
		
		tool.ajax({
			requestUrl:"/ajax?action=feedBack",
			overtimeUrl:"/index",
			dataSet:dataSet,
			success:function(msg){
				if(msg.stateCode == "success"){
					<%--调用关闭意见反馈--%>
					clickfeedBackClose();
					infoBox("反馈信息提交成功!",10);
				}
				else{
					if(msg.stateCode == "content_isnull"){
						$("#feedBackError").html("请填写反馈内容");
					}
					else if(msg.stateCode == "content_overlength"){
						$("#feedBackError").html("反馈内容最多只能填2000个字符");
					}
					else if(msg.stateCode == "linkman_overlength"){
						$("#feedBackError").html("联系方式最多只能填200个字符");
					}
					else if(msg.stateCode == "validateCode_isnull"){
						$("#feedBackError").html("请填写验证码");
					}
					else if(msg.stateCode == "validateCode_error"){
						$("#feedBackError").html("验证码填写错误");
						<%--调用更新验证码--%>
						clickfeedBackCodeUpdate();
					}
					$("#feedBackError").css("display","block");
				}
			}
		});
	}
	
	<%--消息框--%>
	function infoBox(msg,sec){
		var html = "";
		html += "<div id='infoBoxBackgroundDiv' class='infoBoxBackgroundDiv' onmousemove='mousemoveInfoBox(event)'></div>";
		html += "<div id='infoBoxDiv' class='infoBoxDiv'>";
		html += "	<div class='infoBoxRowDiv1'";
		html += "		onmousedown='mousedownInfoBox(event)'"; 
		html += "		onmouseup='mouseupInfoBox()'";
		html += "		onmousemove='mousemoveInfoBox(event)'";
		html += "	>";
		html += "		<font class='infoBoxSubFont1'>系统消息</font>";
		html += "		<font id='infoBoxAutoClose' style='color:#999; font-size:12px; margin-left:5px;'>";
		html += "			<font id='infoBoxAutoCloseSec' style='color:red;'></font>秒后自动关闭";
		html += "		</font>";
		html += "		<img class='infoBoxCloseImg' src='/image/system/close.png'"; 
		html += "			onclick='clickInfoBoxClose()'"; 
		html += "		/>";
		html += "	</div>";
		html += "	<div class='infoBoxRowDiv2'>";
		html += "		<div style='width:30px;'>";
		html += "			<img src='/image/system/success.png' style='width:30px;'/>";
		html += "		</div>";
		html += "		<div style='width:240px; margin-left:20px;'>";
		html += "			<font class='infoBoxSubFont2'>"+msg+"</font>";
		html += "		</div>";
		html += "	</div>";
		html += "	<div class='infoBoxRowDiv3'>";
		html += "		<A href='javascript:clickInfoBoxClose()' class='infoBoxSubmitA'>好，我知道了</A>";
		html += "		<A id='infoBoxNotAutoClose' href='javascript:clickInfoBoxNotAutoClose()'"; 
		html += "			class='infoBoxSubmitA' style='margin-left:10px;'";
		html += "		>暂不关闭</A>";
		html += "	</div>";
		html += "</div>";
		$("body").eq(0).append($(html));
		
		<%--调用自动关闭计时器--%>
		infoBoxAutoClose(sec);
	}
	
	<%--点击消息框关闭--%>
	function clickInfoBoxClose(){
		$("#infoBoxBackgroundDiv").remove();
		$("#infoBoxDiv").remove();
	}
	
	var infoBoxX;
	var infoBoxY;
	var infoBoxRight;
	var infoBoxBottom;
	var infoBoxIsMovie = false;
	
	<%--鼠标在消息框标题Div上按下事件--%>
	function mousedownInfoBox(e){
		infoBoxX = e.clientX;
		infoBoxY = e.clientY;
		infoBoxRight = parseInt($("#infoBoxDiv").css("right"));
		infoBoxBottom = parseInt($("#infoBoxDiv").css("bottom"));
		infoBoxIsMovie = true;
	}
	
	<%--鼠标在消息框标题Div上升起事件--%>
	function mouseupInfoBox(){
		infoBoxIsMovie = false;
	}
	
	<%--鼠标移动消息框事件--%>
	function mousemoveInfoBox(e){
		if(infoBoxIsMovie){
			var newX = e.clientX;
			var newY = e.clientY;
			
			$("#infoBoxDiv").css("right",infoBoxRight - newX + infoBoxX);
			$("#infoBoxDiv").css("bottom",infoBoxBottom - newY + infoBoxY);
		}
	}
	
	<%--消息框自动关闭的时间在外--%>
	var infoBoxAutoCloseTimeout;
	
	<%--消息框自动关闭 计时组件--%>
	function infoBoxAutoClose(sec){
		<%--设置显示的剩余时间--%>
		$("#infoBoxAutoCloseSec").html(sec);
		if(sec > 0){
			infoBoxAutoCloseTimeout = window.setTimeout("infoBoxAutoClose("+(sec-1)+")",1000);
		}
		else{
			<%--调用关闭--%>
			clickInfoBoxClose();
		}
	}
	
	<%--点击 "暂不关闭" 按钮事件--%>
	function clickInfoBoxNotAutoClose(){
		<%--清除自动关闭时间函数--%>
		clearTimeout(infoBoxAutoCloseTimeout);
		
		$("#infoBoxNotAutoClose").remove();
		$("#infoBoxAutoClose").remove();
	} 
</script>